package com.zenithmind.chat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zenithmind.chat.pojo.entity.AiChat;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * AI对话Mapper接口
 */
@Mapper
public interface AiChatMapper extends BaseMapper<AiChat> {

    /**
     * 查询所有唯一用户ID列表
     * @return 用户ID列表
     */
    @Select("SELECT DISTINCT user_id FROM ai_chat WHERE status = 1")
    List<String> selectUserIdList();
} 